<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="/res/app/admin/css/common.css" rel="stylesheet" />
<script type="text/javascript" src="/res/js/lib/jquery.js"></script>
<script type="text/javascript" src="/res/frame/js/t_thickbox.js"></script>
<title>缓存管理</title>

<script type="text/javascript">
    function refresh_now(name){
        $.ajax({
              url:'/admin/a-cache/refresh',
              method:'post',
              data:'sys_ajax=1&sys_debug_log=ACache&name='+name+'&cache='+Math.random(),
              dataType:'json',
              success:function(json){
            	  if(json.success){
                          alert('成功:'+json.msg);
                     }else {
                          alert(json.msg);
                          }
               },
               error:function (e){
                 alert(e.responseText);
               }
              
            });
    }

    /**
     * 
     */
    function refresh_cache(id){
    	$.ajax({
            url:'/admin/a-cache/refreshCache',
            method:'post',
            data:'sys_ajax=1&sys_debug_log=ACache&id='+id+'&cache='+Math.random(),
            dataType:'json',
            success:function(json){
                if(json.success){
                        alert('成功:'+json.msg);
                        window.location.reload();
                   }else {
                        alert(json.msg);
                        }
             },
             error:function (e){
               alert(e.responseText);
             }
            
          });
    }
</script>
</head>
<body>

<div >您当前所在的位置：<span >缓存管理</span>
</div>
<div class="clr"></div>

        <!--     演示foreach如何使用      -->
        <div class="mt10">
          <table id="ffc" cellpadding="0" cellspacing="0" class="t_stpi mb10" style= "table-layout:fixed ">
            <tr>
              <!-- FOREACH fields -->
              <th width="50" title='{Comment}'>{Field}</th>
              <!-- END -->
              <th width="50" title='操作'>操作</th>
            </tr>
            <!-- FOREACH tables -->
            <tr>
                       <!-- FOREACH ROWVALUE -->                 
              <td id ="" align="center">{ROWVALUE}</td>
                      <!-- END -->
              <td align="center">
                    <input type="button" onclick="refresh_cache({id})" value="刷新"/>
              </td>
            </tr>
            <!-- END --> 
          </table> 
          <div align="center">{pager}</div>          
        </div>

</body>
</html>